package com.znf4.feedback.server.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znf4.feedback.entity.FeedBack;
import com.znf4.feedback.mapper.FeedBackMapper;
import com.znf4.feedback.server.FeedBackServer;

@Service
public class FeedBackServerImpl implements FeedBackServer {
	
	@Autowired
	private FeedBackMapper feedBackMapper ;
	
	

	public void addFeedBack(FeedBack feedBack) {
		feedBackMapper.insert(feedBack);
		
	}

	public void updateFeedBack(FeedBack feedBack) {
		feedBackMapper.update(feedBack);
		
	}

	public void delOneFeedBack(FeedBack feedBack) {
		feedBackMapper.deleteOne(feedBack);
		
	}

	public void delAllFeedBack(List<FeedBack> list) {
		feedBackMapper.deleteAll(list);
		
	}

	public FeedBack queryOne(FeedBack feedBack) {
		return feedBackMapper.queryOne(feedBack);
	}

	public List<FeedBack> queryAll(FeedBack feedBack) {
		return feedBackMapper.queryAll(feedBack);
	}
	
	

	

	
	
	
	
	

}
